if(!dojo._hasResource["opm.widgets.CustomDateTextBox"]){
dojo._hasResource["opm.widgets.CustomDateTextBox.js"] = true;
dojo.provide("opm.widgets.CustomDateTextBox");
dojo.require("dijit.form.DateTextBox");
dojo.declare("opm.widgets.CustomDateTextBox",dijit.form.DateTextBox,
{
   oracleFormat: {
        selector: 'date',
        datePattern: 'yyyy-MM-dd hh:mm:ss z(ZZZZ) aaa'
    },
    value: "",
    postMixInProperties: function() { // change value string to Date object
       this.inherited(arguments);
       var customOracleFormat = {
        selector: 'date',
        datePattern: 'MM-dd-yyyy'
    };
       this.value = dojo.date.locale.parse(this.value, customOracleFormat);
    },
   // To write back to the server in Oracle format, override the serialize method:
    serialize: function(dateObject, options) {
        return dojo.date.locale.format(dateObject, this.oracleFormat).toUpperCase();
    }
});
}